public class Main {
    public static void main(String[] args) {
        // 1. 教师开课
        Teacher t1 = new Teacher("T001", "张三", "男");
        Course c1 = t1.openCourse("C001", "Java编程", "教学楼A101", "周一上午9:00-11:00");

        Teacher t2 = new Teacher("T002", "李四", "女");
        Course c2 = t2.openCourse("C002", "数据库原理", "实验楼B202", "周三下午2:00-4:00");

        // 2. 学生选课、退课
        Student s1 = new Student("S001", "王五", "男");
        s1.selectCourse(c1);
        s1.selectCourse(c2);

        Student s2 = new Student("S002", "赵六", "女");
        s2.selectCourse(c1);
        s2.dropCourse(c2);  // 退选未选修的课程，测试退课逻辑

        // 3. 打印学生课表
        s1.printCourseSchedule();
        s2.printCourseSchedule();
    }
}